﻿using System.Collections.Generic;
using Global = Tauren.Business.Entity.Global;
using Model = Tauren.Business.Entity.Model;

namespace Tauren.Business.DLL.Unitinfo
{
    /// <summary>
    /// 单位信息
    /// </summary>
    public interface IUnitinfoBusiness : Base.IBaseDLL
    {
        /// <summary>
        /// 分页获取账号信息
        /// </summary>
        /// <param name="queryModel"></param>
        /// <param name="Total"></param>
        /// <returns></returns>
        List<Model.PageUnitModel> Pages(Global.QueryModel queryModel, out long Total);

        /// <summary>
        /// 根据编码获取信息
        /// </summary>
        /// <param name="Code"></param>
        /// <returns></returns>
        Model.Unitinfo GetByCode(string Code);

        /// <summary>
        /// 根据多个编码获取多个单位
        /// </summary>
        /// <param name="Codes"></param>
        /// <returns></returns>
        List<Model.Unitinfo> GetByCode(string[] Codes);

        /// <summary>
        /// 删除单位信息
        /// </summary>
        /// <param name="UnitId"></param>
        /// <returns></returns>
        bool Delete(object UnitId);
    }
}
